import request from '@/utils/request'

/**
 * 面试人员列表
 * @param {*} data
 */
export function peInterviewListAPI(data) {
    return request({
        url: 'hr/interview/interviewList',
        method: 'post',
        data: data
    })
}

/**
 * 新增面试人员
 * @param {*} data
 */
export function addRecordAPI(data) {
    return request({
        url: 'hr/interview/addRecord',
        method: 'post',
        data: data
    })
}

/**
 * 编辑面试人员
 * @param {*} data
 */
export function editRecordAPI(data) {
    return request({
        url: 'hr/interview/editRecord',
        method: 'post',
        data: data
    })
}

/**
 * 删除面试记录
 * @param {*} data
 */
export function recordDelAPI(data) {
    return request({
        url: 'hr/interview/recordDel',
        method: 'post',
        data: data
    })
}

/**
 * 面试人员详情
 * @param {*} data
 */
export function recordInfoAPI(data) {
    return request({
        url: 'hr/interview/recordInfo',
        method: 'post',
        data: data
    })
}

/**
 * 一面记录
 * @param {*} data
 */
export function firstInterviewAPI(data) {
    return request({
        url: 'hr/interview/firstInterview',
        method: 'post',
        data: data
    })
}

/**
 * 二面记录
 * @param {*} data
 */
export function secondInterviewAPI(data) {
    return request({
        url: 'hr/interview/secondInterview',
        method: 'post',
        data: data
    })
}

/**
 * 主管审核
 * @param {*} data
 */
export function masterCheckAPI(data) {
    return request({
        url: 'hr/interview/masterCheck',
        method: 'post',
        data: data
    })
}

/**
 * 办理入职
 * @param {*} data
 */
export function dealInAPI(data) {
    return request({
        url: 'hr/interview/dealIn',
        method: 'post',
        data: data
    })
}

/**
 * 办理离职
 * @param {*} data
 */
export function dealLeaveAPI(data) {
    return request({
        url: 'hr/interview/dealLeave',
        method: 'post',
        data: data
    })
}

/**
 * 人事专员列表
 * @param {*} data
 */
export function hrListAPI(data) {
    return request({
        url: 'hr/interview/hrList',
        method: 'post',
        data: data
    })
}

/**
 * 部门和类型列表
 * @param {*} data
 */
export function strucAndCateAPI(data) {
    return request({
        url: 'hr/position/getStrucAndCate',
        method: 'post',
        data: data
    })
}

/**
 * 岗位列表
 * @param {*} data
 */
export function positionListAPI(data) {
    return request({
        url: 'hr/position/positionList',
        method: 'post',
        data: data
    })
}

/**
 * 岗位分配
 * @param {*} data
 */
export function positionAssignAPI(data) {
    return request({
        url: 'hr/position/positionAssign',
        method: 'post',
        data: data
    })
}

/**
 * 新增岗位
 * @param {*} data
 */
export function addPositionAPI(data) {
    return request({
        url: 'hr/position/addPosition',
        method: 'post',
        data: data
    })
}

/**
 * 新增岗位
 * @param {*} data
 */
export function editPositionAPI(data) {
    return request({
        url: 'hr/position/editPosition',
        method: 'post',
        data: data
    })
}

/**
 * 删除岗位
 * @param {*} data
 */
export function delPositionAPI(data) {
    return request({
        url: 'hr/position/delPosition',
        method: 'post',
        data: data
    })
}


/**
 * 部门列表
 * @param {*} data
 */
export function strucListAPI(data) {
    return request({
        url: 'hr/salary/strucList',
        method: 'post',
        data: data
    })
}

/**
 * 工资单列表
 * @param {*} data
 */
export function hrSalaryListAPI(data) {
    return request({
        url: 'hr/salary/hrSalaryList',
        method: 'post',
        data: data
    })
}

/**
 * 工资单详情
 * @param {*} data
 */
export function salaryDetailAPI(data) {
    return request({
        url: 'hr/salary/salaryDetail',
        method: 'post',
        data: data
    })
}

/**
 * 个人绩效详情
 * @param {*} data
 */
export function achivementListAPI(data) {
    return request({
        url: 'hr/salary/achivementList',
        method: 'post',
        data: data
    })
}

/**
 * 导出工资单
 * @param {*} data
 */
export function exportSalaryListAPI(data) {
    return request({
        url: 'hr/salary/exportSalaryList',
        method: 'post',
        data: data
    })
}

/**
 * 工资单确认
 * @param {*} data
 */
export function comfirmSalaryAPI(data) {
    return request({
        url: 'hr/salary/comfirmSalary',
        method: 'post',
        data: data
    })
}
